<?php
declare(strict_types=1);

use Phinx\Migration\AbstractMigration;

final class AddIndexProjectCheckListInProjectCheckListTable extends AbstractMigration
{
    public function up()
    {
        $this->table('project_check_list')->addIndex(['project_id', 'check_list_id'], ['name' => 'idx_project_check_list', 'type' => 'normal'])->save();
    }

    public function down()
    {
        $this->table('project_check_list')->removeIndexByName('idx_project_check_list')->save();
    }
}
